{% extends "base_generic.html" %}
{% block content %}
    <div id="primaryContentContainer">
      <div id="primaryContent">
        <h2>{{film.title}} (<a href="/editfilm/{{film.key}}">edit</a>)</h2>
        <p>{{film.plot}}</p>
        <p>Director:  <a href="/people/{{film.director.url}}">{{film.director.name}}</a></p>
        <h3>Cast:</h3>
        {% for actor in film.casting %}
          {% if forloop.first %}
            <div>
            <ul>
          {% endif %}
          <li><a href="/people/{{actor|urlconversion}}">{{actor}}</a></li>
          {% if forloop.last %}
            </ul>
            </div>
          {% endif %}
        {% endfor %}
        {% for genre in film.genres %}
          {% if forloop.first %}
            <p><span>Genres:</span>
          {% endif %}
          <a href="/films/{{genre|urlconversion}}">{{genre}}</a>{% if forloop.last %}</p>{% else %},{% endif %}
        {% endfor %}
        <p><img src="http://www.clanty.com/proxyimagesimdb?href={{film.image}}" alt='image' /></p>
      </div>
    </div>
{% endblock %}
